<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

Route::group('api', function () {
    Route::post('goview/sys/login', 'User/login')->validate(\app\validate\User::class, 'login');
    Route::post('goview/sys/register', 'User/register')->validate(\app\validate\User::class, 'register');
    Route::get('goview/sys/logout', 'User/logout');
    Route::get('goview/sys/getOssInfo', 'Common/ossInfo');
    Route::get('goview/project/list', 'Project/list');
    Route::post('goview/project/create', 'Project/create');
    Route::post('goview/project/edit', 'Project/edit');
    Route::get('goview/project/getData', 'Project/read');
    Route::delete('goview/project/delete', 'Project/delete');
    Route::put('goview/project/publish', 'Project/publish');
    Route::post('goview/project/upload', 'Project/upload');
    Route::post('goview/project/save/data', 'ProjectData/save');
});
